package com.yxb.application.service;

import java.util.List;
import com.yxb.application.domain.TeacherApplication;

/**
 * 家教申请Service接口
 * 
 * @author 林德炫
 * @date 2025-03-28
 */
public interface ITeacherApplicationService 
{
    /**
     * 查询家教申请
     * 
     * @param applicationId 家教申请主键
     * @return 家教申请
     */
    public TeacherApplication selectTeacherApplicationByApplicationId(Long applicationId);

    /**
     * 查询家教申请列表
     * 
     * @param teacherApplication 家教申请
     * @return 家教申请集合
     */
    public List<TeacherApplication> selectTeacherApplicationList(TeacherApplication teacherApplication);

    /**
     * 新增家教申请
     * 
     * @param teacherApplication 家教申请
     * @return 结果
     */
    public int insertTeacherApplication(TeacherApplication teacherApplication);

    /**
     * 修改家教申请
     * 
     * @param teacherApplication 家教申请
     * @return 结果
     */
    public int updateTeacherApplication(TeacherApplication teacherApplication);

    /**
     * 批量删除家教申请
     * 
     * @param applicationIds 需要删除的家教申请主键集合
     * @return 结果
     */
    public int deleteTeacherApplicationByApplicationIds(Long[] applicationIds);

    /**
     * 删除家教申请信息
     * 
     * @param applicationId 家教申请主键
     * @return 结果
     */
    public int deleteTeacherApplicationByApplicationId(Long applicationId);

    TeacherApplication getApplicationByUserId(Long userId);

    public int updateApplicationStatusByUserId(Long userId);
}
